package day03;

public class OpenDemo3 {
    public static void main(String[] args) {

        //&& || !
        int a = 5, b = 10, c = 5;
        boolean b1 = b >= a && b < c;
        System.out.println(b1);
        System.out.println(b <= c && b > a);
        System.out.println(a == b && c > b);
        System.out.println(b != c && a < b);

        int age = 40;
        System.out.println(age > 17 && age <= 50);
        int score = 86;
        System.out.println(score >= 60 && score <= 100);


        System.out.println(b > a || b < c);
        System.out.println(b <= c || b > a);
        System.out.println(b != c || a < b);
        System.out.println(a == b || b < c);

        int score1 = 90;
        System.out.println(score1 < 0 || score1 > 100);
        System.out.println("==========");

        boolean b2 = !(a < b);
        System.out.println(b2);
        System.out.println(!(a > b));

    }

}
